import { ComponentRef, ViewContainerRef } from "@angular/core";
import { ContentListConfigItem, MenuInfoConfig } from "@shared/service-proxies/service-proxies";

export interface IImageTextComponent {
    vc: ViewContainerRef;
    cmpRef: ComponentRef<any>;

    menuConfig: MenuInfoConfig;

    callbackAfterSave:{():void};

    kind: number;
    menuId: string;
    menuName: string;

    permissionDic: { [key: string]: boolean };
    hasConfigPermission: boolean;
    isModal: boolean;

    listData: { [key: string]: { [key: string]: any }[] };
    data: { [key: string]: { [key: string]: any } } ;
    Collapse: { [key: string]: boolean } ;
    randomId :{ [key: string]: string};
    formNameCache :{ [key: string]: string};

    listConfig: { [key: string]: ContentListConfigItem[]; };

    isTemporary :{ [key: string]: boolean}; 
    saving : boolean;

    createNews(key: string);

    editModule(record: { [key: string]: any }, key: string) ;

    reloadPage();
}
